package com.java.main.service.token;

//import com.hibaby.crm.domain.customer.CustomerUserDO;
import com.java.main.domain.token.TokenDO;
import com.java.main.domain.user.UserDO;
import com.java.main.service.SysBaseService;

public interface TokenService extends SysBaseService<TokenDO, Integer> {
	public TokenDO findByUserId(Integer userId);

	public String getTokenByUser(UserDO user);

//	public String getTokenByUser(UserDO user);

	public void delByUserId(Integer userId);

	public TokenDO findByToken(String token);

	public void deleteTokenDObyToken(String token);

	public void flushTokenDO(TokenDO tokenDO);

}
